import Layout from '@/layout'
export default {
  path: '/employess',
  component: Layout,
  children: [
    {
      //如果子路由时''空字符串,当前路由自动匹配
      path: '',
      name: 'employees',
      component: () => import('@/views/employess/employess.vue'),
      meta: { title: '员工管理', icon: 'people' }
    },
    {
      //员工详情页
      path: 'detail',
      // path:'detail/:userId',
      name: 'detail',
      component: () => import('@/views/employess/detail.vue'),
      hidden: true
    },
    {
      path: 'print/:id', // 二级默认路由
      component: () => import('@/views/employess/components/print.vue'), // 按需加载
      hidden: true
    }
  ]
}

